import http from '@/utils/request'

/**
 * 删除用户
 * @param params
 * @returns
 */
export default {
  // 添加
  async addData(params) {
    return await http.post("/api/data/add", params);
  },

  // 删除
  async deletedata(params) {
    return await http.delete("/api/data/delete", params);
  },

  /**
   * 获取数据列表
   */
  async getMenuList() {
    return await http.get("/api/data/datalist");
  }
}
